From b32d15d03ac2b2a4f8710b65d2493245d2fac0fb Mon Sep 17 00:00:00 2001 From: parkrrrr Date: Wed, 21 Jun 2006 12:34:46 +0000 Subject: [PATCH] Control points were backwards --- saroute.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/saroute.c b/saroute.c index a93056ad3..bbef33c05 100644 --- a/saroute.c +++ b/saroute.c @@ -201,10 +201,11 @@ my_read(void) record = ReadRecord(infile, recsize); latlon = (struct ll *)(record); + /* These records are backwards for some reason */ lat = (0x80000000UL - - le_read32(&latlon->lat)) / (double)(0x800000); - lon = (0x80000000UL - le_read32(&latlon->lon)) / (double)(0x800000); + lon = (0x80000000UL - + le_read32(&latlon->lat)) / (double)(0x800000); wpt_tmp = waypt_new(); wpt_tmp->latitude = lat; -- 2.30.2